﻿<phone:PhoneApplicationPage 
    x:Class="RapidRepository.TestMobileApplication.AddCustomer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="Rapid Repository" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="add customer" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBlock Margin="40,17,-40,550">First Name <Run Foreground="Red">*</Run></TextBlock>
            <TextBox Name="FirstName" Width="300" Margin="150,0,6,547" FontSize="18">
                <TextBox.InputScope>
                    <InputScope>
                        <InputScopeName NameValue="PersonalGivenName" />
                    </InputScope>
                </TextBox.InputScope>
            </TextBox>
            <TextBlock Margin="40,70,-40,497">Last Name <Run Foreground="Red">*</Run></TextBlock>
            <TextBox Margin="150,56,6,491" Name="LastName" Width="300" FontSize="18">
                <TextBox.InputScope>
                    <InputScope>
                        <InputScopeName NameValue="PersonalSurname" />
                    </InputScope>
                </TextBox.InputScope>
            </TextBox>
            <TextBlock Margin="40,127,-40,440">House No. <Run Foreground="Red">*</Run></TextBlock>
            <TextBox Height="61" Margin="150,112,6,0" Name="HouseNumber" Width="300" VerticalAlignment="Top" FontSize="18">
                <TextBox.InputScope>
                    <InputScope>
                        <InputScopeName NameValue="Number" />
                    </InputScope>
                </TextBox.InputScope>
            </TextBox>
            <TextBlock Margin="40,184,-40,383">Post Code <Run Foreground="Red">*</Run></TextBlock>
            <TextBox Margin="0,169,6,378" Name="PostalCode" Width="300" HorizontalAlignment="Right" FontSize="18">
                <TextBox.InputScope>
                    <InputScope>
                        <InputScopeName NameValue="PostalCode" />
                    </InputScope>
                </TextBox.InputScope>
            </TextBox>
            <TextBlock Margin="40,239,-40,328">Landline <Run Foreground="Red">*</Run></TextBlock>
            <TextBox HorizontalAlignment="Right" Margin="0,225,6,322" Name="LandLineNumber" Width="300" FontSize="18">
                <TextBox.InputScope>
                    <InputScope>
                        <InputScopeName NameValue="Number" />
                    </InputScope>
                </TextBox.InputScope>
            </TextBox>
            <TextBlock Margin="40,296,-40,271">Mobile <Run Foreground="Red">*</Run></TextBlock>
            <TextBox HorizontalAlignment="Right" Margin="0,281,6,262" Name="MobileNumber" Width="300" FontSize="18">
                <TextBox.InputScope>
                    <InputScope>
                        <InputScopeName NameValue="Number" />
                    </InputScope>
                </TextBox.InputScope>
            </TextBox>
            <Button Content="Save" Height="72" HorizontalAlignment="Left" Margin="290,337,0,0" Name="SaveCustomerButton" VerticalAlignment="Top" Width="160" Click="SaveCustomer" />
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>
